package cn.stylefeng.guns.modular.yingbao.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.yingbao.entity.UserName;
import cn.stylefeng.guns.modular.yingbao.model.params.UserNameParam;
import cn.stylefeng.guns.modular.yingbao.model.result.UserNameResult;
import cn.stylefeng.guns.sys.modular.system.model.UploadResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 实名认证表 服务类
 * </p>
 *
 * @author zs
 * @since 2019-12-11
 */
public interface UserNameService extends IService<UserName> {

    /**
     * 新增
     *
     * @author zs
     * @Date 2019-12-11
     */
    void add(UserNameParam param);

    /**
     * 删除
     *
     * @author zs
     * @Date 2019-12-11
     */
    void delete(UserNameParam param);

    /**
     * 更新
     *
     * @author zs
     * @Date 2019-12-11
     */
    void update(UserNameParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zs
     * @Date 2019-12-11
     */
    UserNameResult findBySpec(UserNameParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zs
     * @Date 2019-12-11
     */
    List<UserNameResult> findListBySpec(UserNameParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zs
     * @Date 2019-12-11
     */
     LayuiPageInfo findPageBySpec(UserNameParam param);

    ResponseData addUserName(UserName userName);

    ResponseData queryByUserId(String userid);

    ResponseData queryByPhone(String phone);

    ResponseData upStatus(String id,String status);

    ResponseData delById(String id);
}
